We start as always by adding the main code to our <head> tag...
Add this code to your <head> tag located at the top of you html page:
<script language="javascript" type="text/javascript" src="chromeless_35.js"></script>
<script language="javascript">
function openIT4FLASH(u,W,H,X,Y,n) {
var cU ='close_up.gif'
var cO ='close_ovr.gif'
var cL ='clock.gif'
var mU ='min_up.gif'
var mO ='min_ovr.gif'
var xU ='max_up.gif'
var xO ='max_ovr.gif'
var rU ='res_up.gif'
var rO ='res_ovr.gif'
var tH ='<font face=verdana size=1> Window title</font>'
var tW =' window title'
var wB ='#000000'
var wBs ='#FFFFFF'
var wBG ='#FF0000'
var wBGs='#00FF00'
var wNS ='toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0'
var fSO ='scrolling=no noresize'
var brd =0;
var ful =false;
var min =false;
var res =false;
var tsz =20;
chromeless(u,n,W,H,X,Y,cU,cO,cL,mU,mO,xU,xO,rU,rO,tH,tW,wB,wBs,wBG,wBGs,wNS,fSO,brd,ful,min,res,tsz)
}
</script>
Now add this action to your button in SWiSH:
On release:
------> Goto URL
------------> javascript:openIT4FLASH('p1.html',400,400, null, null, 'mywin1')
Leave the target box blank!
EXAMPLE:
BASIC CONFIGURATION:
var tH
= Title of your chromeless window.
var tW
= The status title.
var wB
= Border color (hex)
var wBs
= Border color on drag (hex)
var wBG
= Background color (hex)
var wBGs
= Background color on drag (hex)
var brd
= The thickness of the border around the window.
Now upload all the included files to your server apart from copy1011.css and button.swi
Note: There is an included .swi file for the button. If you want to then just modify it to your style and use it from there. Same with this page, if you are having difficulties or just can't be bothered to read the steps. =)